import React from "react";

import "./list-card.scss";

export default function ListCard(props) {
  const { newList } = props;
  const urlBase = "http://localhost:8080";
  return (
    <div className="flex list_card">
      <img src={urlBase + newList.imgSrc} alt="" />
      <div className="flex flex_1 flex_c_b content">
        <div className="title">{newList.title}</div>
        <div className="flex flex_r_b  ">
          <span>{newList.from}</span>
          <span>{newList.date}</span>
        </div>
      </div>
    </div>
  );
}
